import request from '@/utils/request'

// 查询顾客购物车列表
export function listShoppingtable(query) {
  return request({
    url: '/system/shoppingtable/list',
    method: 'get',
    params: query
  })
}

// 查询顾客购物车详细
export function getShoppingtable(uid) {
  return request({
    url: '/system/shoppingtable/' + uid,
    method: 'get'
  })
}

// 新增顾客购物车
export function addShoppingtable(data) {
  return request({
    url: '/system/shoppingtable',
    method: 'post',
    data: data
  })
}

// 修改顾客购物车
export function updateShoppingtable(data) {
  return request({
    url: '/system/shoppingtable',
    method: 'put',
    data: data
  })
}

// 删除顾客购物车
export function delShoppingtable(uid) {
  return request({
    url: '/system/shoppingtable/' + uid,
    method: 'delete'
  })
}
